<template>
  <div class="home-container">
    <h1>系统功能导航</h1>
    <div class="navigation-grid">
      <router-link to="/system-info" class="nav-card">
        <div class="nav-icon">
          <i class="system-icon">🖥️</i>
        </div>
        <h2>系统信息</h2>
        <p>查看计算机硬件和系统状态信息</p>
      </router-link>
      
      <router-link to="/file-tools" class="nav-card">
        <div class="nav-icon">
          <i class="file-icon">📁</i>
        </div>
        <h2>文件处理工具</h2>
        <p>批量重命名、内容替换、目录统计等功能</p>
      </router-link>
    </div>
  </div>
</template>

<script setup>
// 主页分发组件，用于导航到不同功能模块
</script>

<style scoped>
.home-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.home-container h1 {
  color: #333;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.navigation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.nav-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-radius: 12px;
  padding: 2rem;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.nav-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.nav-card h2 {
  color: #42b883;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.nav-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .home-container {
    padding: 1rem;
  }
  
  .home-container h1 {
    font-size: 2rem;
  }
  
  .navigation-grid {
    grid-template-columns: 1fr;
  }
}
</style>